from pymilvus import MilvusClient

client = MilvusClient(
    uri="http://localhost:19530",
    user="root",
    password="Milvus",
)

data = [
    {"vector": [0.1, 0.2, 0.3, 0.4, 0.5], "category": "category1"},
    {"vector": [0.6, 0.7, 0.8, 0.9, 1.0], "category": "category2"}
]
res = client.insert(
    collection_name="topic_collection",
    data=data,
    sync=False,
)
print(res)
